home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14069 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: nuscc.nus.sg!satrajit
  2. From: satrajit@iscs.nus.sg (Satrajit Sujit Ghosh)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: VC++4.0 Linking Problem ...
  5. Date: 28 Mar 1996 16:21:52 GMT
  6. Organization: National University of Singapore
  7. Message-ID: <4jeeb0$k0p@nuscc.nus.sg>
  8. References: <4jdeor$9kh@nuscc.nus.sg>
  9. NNTP-Posting-Host: satrajit@sununx.iscs.nus.sg
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Benedict CHNG (chngchi1@iscs.nus.sg) wrote:
  13. : I have no problem generating code that calls mfc40(d).dll but when I
  14. : tried to standalone code that doesn't requie mfc40(d).dll, I get a link
  15. : error saying that my GDI32.DLL is corrupted.
  16.  
  17. : I'm using VC++4.0 on Win95 OS. Program is generated by AppWizard.
  18.  
  19. : You see, no many what program I try, I get the same linking problem. Even
  20. : those 'virgin' program that's churned out by the AppWizard (ie, they
  21. : aren't modified yet in any way). I even try those sample program included
  22. : in the 'on-line books'. Just to quote one, I tried that 'minimal hello'
  23. : sample. No matter how I tried to tweak the build settings, I just get the
  24. : same problem with my debug version, but whenever I tried to run the debug
  25. : version out of the developer's studio, I get a debug error too!
  26.  
  27. : OK, the output is here :
  28. : --------------------Configuration: Helloapp - Win32 Release--------------------
  29. : Compiling...
  30. : helloapp.cpp
  31. : Linking...
  32. : gdi32.lib(GDI32.dll) : fatal error LNK1143: invalid or corrupt file: no
  33. :                        symbol for comdat section 0x4
  34. : Error executing link.exe.
  35. : helloapp.exe - 1 error(s), 0 warning(s)
  36.  
  37.  
  38. : Ben
  39. : PS : I'm really desperate now as my project dateline gets closer.
  40.  
  41.  
  42.     I too am using VC4.0 however there does not seem to exist a similar problem. You could really start by raplcing GDI32.DLL. Alternatively u could try using the static library instead. THis option is provided at the creation of the startup files for the project.
  43.  
  44. --
  45. Satra[jit]
  46. ------------------------------------------------------
  47. http://www.iscs.nus.sg/~satrajit
  48. Department of Information Systems and Computer Science
  49. National University of Singapore
  50. ======================================================
  51.